import React, { Component } from 'react';
// import { observable } from 'mobx';
// import { observer, inject } from "mobx-react";
import PropTypes from 'prop-types';
import TabTitle from '@/components/TabTitle/TabTitle'
import EditTable from './components/EditTable/EditTable'
import './Category.less';

// @inject('globalStore') @observer
class Category extends Component {
  componentDidMount() {
    document.getElementsByClassName('ant-layout-content')[0].scrollTop = 0
  }

  static propTypes = {
    history: PropTypes.object.isRequired
  }

  render() {
    const breadCrumb = ['News', 'Category']

    return (
      <div className="category">
        <TabTitle
          title="Category"
          breadCrumb={breadCrumb} />
        <div className="page-content mt144">
          <EditTable />
        </div>
      </div>
    );
  }
}

export default Category;
